package com.example.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author John123
 * @since 2018-08-27
 */
//@TableName("student")这里可以省略
@Data
public class Student extends Model<Student> {

    private static final long serialVersionUID = 1L;

    private String id;
    private String name;
    private Float score;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Student{" +
        "id=" + id +
        ", name=" + name +
        ", score=" + score +
        "}";
    }
}
